package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javabean.JPanelImagen;
import javax.swing.JButton;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaBienvenida extends javax.swing.JFrame {
	private JPanelImagen panFondo;
	private JMenuBar jMenuBar1;
	private JButton btnentrar;
	private JMenuItem jMenuItem1;
	private JMenu jMenu2;
	private JMenu jMenu1;

	/**
	* Auto-generated main method to display this JFrame
	*/
	
	public VistaBienvenida() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				
			}
			{
				panFondo = new JPanelImagen();
				
				getContentPane().add(panFondo, BorderLayout.CENTER);
				panFondo.setRutaImagen("/Imagen/fondo.jpg");
				{
				}
				{
					btnentrar = new JButton();
					panFondo.add(btnentrar);
					btnentrar.setText("Entrar");
					panFondo.add(btnentrar,"CENTER");
			
					btnentrar.setBounds(0, 0, 390, 20);
				}

			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void addListener(ActionListener a) {
		//jMenu2addActionListener(a);
		btnentrar.addActionListener(a);
	}

}
